<?php
defined('IN_ADMIN') or exit('No permission resources.');
$show_validator = $show_scroll = $show_dialog = 1;
include $this->admin_tpl('header', 'admin');
?>
<h3 style="padding-left: 20px;padding-top: 10px">
<?php echo $info['name']?$info['name'].'——':''?>认证信息
<a href="javascript:history.back(-1);" style="font-size:14px;color: #0000FF"><em>返回认证列表</em></a>
</h3>
	<div class="pad-10">
			<div class="contentList pad-10">
				<table width="100%" class="table_form ">
					<tbody>
						<tr>
							<th width="200"><?php echo L('realname')?>：</th>
							<td><?php if(!empty($info['name'])){echo $info['name'];}else{echo '<font color="red">（未设置）</font>';}?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('company_name')?>：</th>
							<td><?php if(!empty($info['company_name'])){echo $info['company_name'];}else{echo '<font color="red">（未设置）</font>';}?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('gender')?>：</th>
							<td><?php if($info['gender'] == '1'){echo '男';}elseif($info['gender'] == '2'){echo '女';}elseif($info['gender'] == '3'){echo '保密';}else{echo '<font color="red">（未设置）</font>';}?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('user_type')?>：</th>
							<td><?php if($info['user_type']==1){echo "普通用户";}elseif($info['user_type']==2){echo "模特";}elseif($info['user_type']==3){echo "经纪人";}elseif($info['user_type']==4){echo "商户";}else{echo '<font color="red">（未设置）</font>';}?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('tel')?>：</th>
							<td><?php if(!empty($info['tel'])){echo $info['tel'];}else{echo '<font color="red">（未设置）</font>';}?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('apply_type')?>：</th>
							<td><?php if($info['apply_type']==1){echo "自己申请";}elseif($info['apply_type']==2){echo "他人代为申请";}else{echo '<font color="red">（未设置）</font>';}?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('height')?>：</th>
							<td><?php if(!empty($info['height'])){echo $info['height'];}else{echo '<font color="red">（未设置）</font>';}?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('weight')?>：</th>
							<td><?php if(!empty($info['weight'])){echo $info['weight'];}else{echo '<font color="red">（未设置）</font>';}?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('bust')?>：</th>
							<td><?php if(!empty($info['bust'])){echo $info['bust'];}else{echo '<font color="red">（未设置）</font>';}?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('waist')?>：</th>
							<td><?php if(!empty($info['waist'])){echo $info['waist'];}else{echo '<font color="red">（未设置）</font>';}?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('identification')?>：</th>
							<td><?php if(!empty($info['identification'])){echo $info['identification'];}else{echo '<font color="red">（未设置）</font>';}?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('id_card_front_img')?>：</th>
							<td><?php if(!empty($info['id_card_front_img'])){echo '<img src="'.$info['id_card_front_img'].'" height="80px>"';}else{echo '<font color="red">（未设置）</font>';}?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('id_card_back_img')?>：</th>
							<td><?php if(!empty($info['id_card_back_img'])){echo '<img src="'.$info['id_card_back_img'].'" height="80px>"';}else{echo '<font color="red">（未设置）</font>';}?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('hold_id_card_img')?>：</th>
							<td><?php if(!empty($info['hold_id_card_img'])){echo '<img src="'.$info['hold_id_card_img'].'" height="80px>"';}else{echo '<font color="red">（未设置）</font>';}?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('license_or_card_img')?>：</th>
							<td><?php if(!empty($info['license_or_card_img'])){echo '<img src="'.$info['license_or_card_img'].'" height="80px>"';}else{echo '<font color="red">（未设置）</font>';}?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('model_card_img')?>：</th>
							<td><?php if(!empty($info['model_card_img'])){echo '<img src="'.$info['model_card_img'].'" width="200>"';}else{echo '<font color="red">（未设置）</font>';}?></td>
						</tr>
						<tr>
							<th width="200">模卡组图：</th>
							<td>
							<?php 
							if(!empty($info['model_imgs'])){
								
								foreach ($info['model_imgs'] as $v) {?>
									<img src="<?php echo $v;?>" width="200" onclick="operate(this);" title="点击移除图片">
								<?php }
							}else{
								echo '<font color="red">（未设置）</font>';
							}?>
							</td>
						</tr>
						<tr>
							<th width="200"><?php echo L('created_by')?>：</th>
							<td><?php if(!empty($userInfo[$info['created_by']])){echo $userInfo[$info['created_by']];}else{echo '<font color="red">（未设置）</font>';}?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('audit_time')?>：</th>
							<td><?php if(!empty($info['audit_time'])){echo $info['audit_time'];}else{echo '<font color="red">（未设置）</font>';}?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('audit_user')?>：</th>
							<td><?php if(!empty($info['audit_user'])){echo $adminInfo[$info['audit_user']];}else{echo '<font color="red">（未设置）</font>';}?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('status')?>：</th>
							<td><?php if(!empty($info['status'])){if($info['status']==1){echo "待审核";}elseif($info['status']==2){echo "驳回";}elseif ($info['status']==3){echo "通过";}}else{echo '<font color="red">（未设置）</font>';}?></td>
						</tr>
					</tbody>
				</table>
			</div>
</div>
</body>
</html>
<script type="text/javascript">

function SwapTab(name,cls_show,cls_hide,cnt,cur){
	for(i=1;i<=cnt;i++){
		if(i==cur){
			 $('#div_'+name+'_'+i).show();
			 $('#tab_'+name+'_'+i).attr('class',cls_show);
		}else{
			 $('#div_'+name+'_'+i).hide();
			 $('#tab_'+name+'_'+i).attr('class',cls_hide);
		}
	}
}

function operate(obj){
	var show = confirm("该操作会移除模卡组图中的指定图片，请谨慎操作！");
	if(show == false){
		return false;
	}
	var src = $(obj).attr('src');//要移除图片的路径
	var id = "<?php echo $info['id'];?>";
	$.ajax({
		type:"POST",
		url:"?m=user_info&c=manage&a=remove_model_img&pc_hash=<?php echo $_SESSION['pc_hash']?>",
		data:{"id":id,"src":src},
		dataType:"JSON",
		success:function(result){
			if(result.status=='200'){
				art.dialog({
					id:"test",
					title:"认证审核",
					content:"图片移除成功",
				});
				$(obj).remove();
			} else {
				art.dialog({
					id:"test",
					title:"认证审核",
					content:"图片移除失败",
				});
			}
		}
	});
}
</script>